package com.inspur.ourhis_afterend.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.inspur.ourhis_afterend.Entity.User;
import com.inspur.ourhis_afterend.Tools.PageAction;

import java.util.List;

public interface UserService {
    public User findByUsername(String username)throws Exception;

    public IPage<User> findAll(PageAction pageAction) throws Exception;

    public void del(Integer id)throws Exception;

    public void add(User user) throws Exception;

    public void edit(User user) throws Exception;

    public User findOne(Integer id) throws Exception;

    List<User> findByName(String realName) throws Exception;

    List<User> findByRole(String role) throws Exception;
}
